package com.sz.youban.dt.entity.pay;

/**
 * @author ruichar
 * 支付状态
 */
public enum PayChannel 
{
	app(1,"app系统端"),
    console(2,"后台系统端");
 
    
	/**
     * 代码
     */
    private int channel;

    /**
     * 含义描述
     */
    private String desc;
    
    PayChannel (int channel,String desc)
    {
    	this.channel = channel;
    	this.desc = desc;
    }

	public int getChannel() {
		return channel;
	}

	public void setChannel(int channel) {
		this.channel = channel;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
    
    
	public static PayChannel getEnu(String name){
    	for(PayChannel enu :PayChannel.values()){
    		if(enu.name().equals(name)){
    			return enu;
    		}
    	}
    	return null;
    }
    
}
